#pragma once
#ifndef ASIO_STANDALONE
#define ASIO_STANDALONE
#endif
#include "asio/include/asio.hpp"
#include "HelloService/HelloService.h"
#include "NewService/NetService.h"
#include "Audio/AudioHelper.h"
#include "asio/include/asio/steady_timer.hpp"
#include "config.h"

class LD_CORE_API Services
{
	CAudioHelper *_auHelp=nullptr;
	
	HelloService *_helloService = nullptr;
	NetServer *_netService = nullptr;
	bool _bInitSucessed=false;

	asio::io_service ios;
	HWND hHostWnd=NULL;
public:
	Services();
	~Services();
	int BindServices(HWND hWnd);
	static Services& GetSingleton();
	void ReStartServices();
	void StopServices();
};
